package org.shzhyun.pay.config;

public class Constant {
    //小程序
    public static String requestUrl = "https://api.weixin.qq.com/sns/jscode2session";
    //服务号 网页授权token
    public static String requestUrlFw = "https://api.weixin.qq.com/sns/oauth2/access_token";
    //服务号 网页授权获取用户信息
    public static String requestUrlFwUserInfo = "https://api.weixin.qq.com/sns/userinfo";
    public static String grantType = "authorization_code";
    //wx13989a42464bf337
    public static String appId = "wx13989a42464bf337";
    public static String appSecret = "7ee49ce4e6a626d51af5f8c8251e7a81";

    //JSAPI和APP 统一下单请求地址 （固定的）
    private static  final String JSAPI_URL="https://api.mch.weixin.qq.com/pay/unifiedorder";
    //支付回调地址（你自己的请求地址，可以自己随意配置啦，写在这方便你理解）
    private static final String  NOTIFY_URL = "http://04a3af668030.ngrok.io/pay/back/wxNotify";
    //支付订单查询地址 （固定的）
    private static  final String ORDER_URL="https://api.mch.weixin.qq.com/pay/orderquery";
    //交易类型（这里是公众号支付）
    private static final String TRADE_TYPE = "JSAPI";


    /** 商户号 */
    public static String merchantId = "1659730187";
    /** 商户证书序列号 */
    public static String merchantSerialNumber = "3359675249F119A3BBD12128039931983671D855";
    /** 商户APIV3密钥 */
    public static String apiV3Key = "wxa393b7f45e90fb4awxa393b7f45e90";

}
